﻿<%@ Control Language="C#" Inherits="PlexBB.Controls.Admin.ForumManagement.AcpForumsList" %>
<a name="maincontent"></a>
<h1>
    <asp:Literal runat="server" Text="<%$ Lang:FORUM_ADMIN%>" /></h1>
<p>
    <asp:Literal runat="server" Text="<%$ Lang:FORUM_ADMIN_EXPLAIN%>" /></p>
<p>
    <strong>
        <asp:Repeater runat="server" ID="rNavigation">
            <ItemTemplate>
                <asp:HyperLink runat="server" ID="hNavigate" />
                -&gt;
            </ItemTemplate>
            <FooterTemplate>
                <asp:Label runat="server" ID="lCurrentForum" />
            </FooterTemplate>
        </asp:Repeater>
        <asp:PlaceHolder runat="server" ID="cForumActions">[<asp:HyperLink runat="server"
            ID="hEditForum" Text="<%$ Lang:EDIT%>" />
            |
            <asp:LinkButton runat="server" ID="bDeleteForum" Text="<%$ Lang:DELETE%>" />
            |
            <asp:LinkButton runat="server" ID="bResyncForum" Text="<%$ Lang:RESYNC%>" />]
        </asp:PlaceHolder>
    </strong>
</p>
<asp:Repeater runat="server" ID="rForums">
    <HeaderTemplate>
        <table cellspacing="1">
            <col class="row1" />
            <col class="row1" />
            <col class="row2" />
            <tbody>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td style="width: 5%; text-align: center;">
                <asp:Image runat="server" ID="iFolderImage" />
            </td>
            <td>
                <asp:Image runat="server" ID="iForumImage" Style="margin-right: 5px;" class="floatBegin" />
                <strong>
                    <asp:Literal runat="server" ID="tForumName" />
                    <asp:HyperLink runat="server" ID="hForumName" />
                </strong>
                <asp:PlaceHolder runat="server" ID="cForumDescription">
                    <br />
                    <asp:Label runat="server" ID="tForumDescription" />
                </asp:PlaceHolder>
                <asp:PlaceHolder runat="server" ID="cForumPosts">
                    <br />
                    <br />
                    <span>
                        <asp:Literal runat="server" Text="<%$ Lang:TOPICS%>" />: <strong>
                            <asp:Literal runat="server" ID="tForumTopics" /></strong> /
                        <asp:Literal runat="server" Text="<%$ Lang:POSTS%>" />: <b>
                            <asp:Literal runat="server" ID="tForumPosts" /></b></span> </asp:PlaceHolder>
            </td>
            <td style="vertical-align: top; width: 100px; text-align: right; white-space: nowrap;">
                <asp:ImageButton runat="server" ID="bUp" ImageUrl="<%$ Theme:Images/IconUp.gif%>"
                    AlternateText="<%$ Lang:MOVE_UP%>" CssClass="image" />
                <asp:Image runat="server" ID="cUpDisabled" ImageUrl="<%$ Theme:Images/IconUpDisabled.gif%>"
                    AlternateText="<%$ Lang:MOVE_UP%>" />
                <asp:ImageButton runat="server" ID="bDown" ImageUrl="<%$ Theme:Images/IconDown.gif%>"
                    AlternateText="<%$ Lang:MOVE_DOWN%>" CssClass="image" />
                <asp:Image runat="server" ID="cDownDisabled" ImageUrl="<%$ Theme:Images/IconDownDisabled.gif%>"
                    AlternateText="<%$ Lang:MOVE_DOWN%>" CssClass="image" />
                <asp:HyperLink runat="server" ID="hEdit">
                        <asp:Image runat="server" ImageUrl="<%$ Theme:Images/IconEdit.gif%>" AlternateText="<%$ Lang:EDIT%>"
                            CssClass="image" /></asp:HyperLink>
                <asp:HyperLink runat="server" ID="hSync">                            
                    <asp:Image runat="server" ImageUrl="<%$ Theme:Images/IconSync.gif%>" AlternateText="<%$ Lang:SYNC%>"
                            CssClass="image" /></asp:HyperLink>
                <asp:Image runat="server" ID="cSyncDisabled" ImageUrl="<%$ Theme:Images/IconSyncDisabled.gif%>"
                    AlternateText="<%$ Lang:MOVE_DOWN%>" CssClass="image" />
                <asp:ImageButton runat="server" ID="bDelete" ImageUrl="<%$ Theme:Images/IconDelete.gif%>"
                    AlternateText="<%$ Lang:DELETE%>" CssClass="image" />
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </tbody></table>
    </FooterTemplate>
</asp:Repeater>
<fieldset class="quick">
    <asp:Literal runat="server" Text="<%$ Lang:SELECT_FORUM%>" />:
    <asp:DropDownList runat="server" ID="sSelectForum" AutoPostBack="true" />
    <asp:Button runat="server" ID="bSelectForum" CssClass="button2" Text="<%$ Lang:GO%>" />
</fieldset>
<fieldset class="quick">
    <asp:TextBox runat="server" ID="tAddForumName" MaxLength="255" />
    <asp:Button runat="server" ID="bAddForum" CssClass="button2" Text="<%$ Lang:CREATE_FORUM%>" />
</fieldset>
<%--	<script type="text/javascript">
	// <![CDATA[
		/**
		* Popup search progress bar
		*/
		function popup_progress_bar()
		{
			var close_waitscreen = 0;
			// no scrollbars...
			popup('{UA_PROGRESS_BAR}', 400, 240, '_sync');
		}
	// ]]>
	</script>

	<h1>{L_FORUM_ADMIN}</h1>

	<p>{L_FORUM_ADMIN_EXPLAIN}</p>

	<!-- IF ERROR_MSG -->
		<div class="errorbox">
			<h3>{L_WARNING}</h3>
			<p>{ERROR_MSG}</p>
		</div>
	<!-- ENDIF -->

	<!-- IF S_RESYNCED -->
		<script type="text/javascript">
		// <![CDATA[
			var close_waitscreen = 1;
		// ]]>
		</script>

		<div class="successbox">
			<h3>{L_NOTIFY}</h3>
			<p>{L_FORUM_RESYNCED}</p>
		</div>
	<!-- ENDIF -->

	<p><strong>{NAVIGATION}<!-- IF S_NO_FORUMS --> [<a href="{U_EDIT}">{L_EDIT}</a> | <a href="{U_DELETE}">{L_DELETE}</a><!-- IF not S_LINK --> | <a href="{U_SYNC}">{L_RESYNC}</a><!-- ENDIF --->]<!-- ENDIF --></strong></p>

	<!-- IF .forums -->
		<table cellspacing="1">
			<col class="row1" /><col class="row1" /><col class="row2" />
		<tbody>
		<!-- BEGIN forums -->
			<tr>
				<td style="width: 5%; text-align: center;">{forums.FOLDER_IMAGE}</td>
				<td>
					<!-- IF forums.FORUM_IMAGE --><div style="float: {S_CONTENT_FLOW_BEGIN}; margin-right: 5px;">{forums.FORUM_IMAGE}</div><!-- ENDIF -->
					<strong><!-- IF forums.S_FORUM_LINK -->{forums.FORUM_NAME}<!-- ELSE --><a href="{forums.U_FORUM}">{forums.FORUM_NAME}</a><!-- ENDIF --></strong>
					<!-- IF forums.FORUM_DESCRIPTION --><br /><span>{forums.FORUM_DESCRIPTION}</span><!-- ENDIF -->
					<!-- IF forums.S_FORUM_POST --><br /><br /><span>{L_TOPICS}: <strong>{forums.FORUM_TOPICS}</strong> / {L_POSTS}: <b>{forums.FORUM_POSTS}</b></span><!-- ENDIF -->
				</td>
				<td style="vertical-align: top; width: 100px; text-align: right; white-space: nowrap;">
					<!-- IF forums.S_FIRST_ROW && not forums.S_LAST_ROW -->
						{ICON_MOVE_UP_DISABLED}
						<a href="{forums.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
					<!-- ELSEIF not forums.S_FIRST_ROW && not forums.S_LAST_ROW -->
						<a href="{forums.U_MOVE_UP}">{ICON_MOVE_UP}</a>
						<a href="{forums.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
					<!-- ELSEIF forums.S_LAST_ROW && not forums.S_FIRST_ROW -->
						<a href="{forums.U_MOVE_UP}">{ICON_MOVE_UP}</a>
						{ICON_MOVE_DOWN_DISABLED}
					<!-- ELSE -->
						{ICON_MOVE_UP_DISABLED}
						{ICON_MOVE_DOWN_DISABLED}
					<!-- ENDIF -->
					<a href="{forums.U_EDIT}">{ICON_EDIT}</a>
					<!-- IF not forums.S_FORUM_LINK -->
						<a href="{forums.U_SYNC}" onclick="popup_progress_bar();">{ICON_SYNC}</a>
					<!-- ELSE -->
						{ICON_SYNC_DISABLED}
					<!-- ENDIF -->
					<a href="{forums.U_DELETE}">{ICON_DELETE}</a>
				</td>
			</tr>
		<!-- END forums -->
		</tbody>
		</table>
	<!-- ENDIF -->

	<form id="fselect" method="post" action="{U_SEL_ACTION}">

	<fieldset class="quick">
		{L_SELECT_FORUM}: <select name="parent_id" onchange="if(this.options[this.selectedIndex].value != -1){ this.form.submit(); }">{FORUM_BOX}</select>

		<input class="button2" type="submit" value="{L_GO}" />
		{S_FORM_TOKEN}
	</fieldset>
	</form>

	<form id="forums" method="post" action="{U_ACTION}">

	<fieldset class="quick">
		<input type="hidden" name="action" value="add" />

		<input type="text" name="forum_name" value="" maxlength="255" />
		<input class="button2" name="addforum" type="submit" value="{L_CREATE_FORUM}" />
		{S_FORM_TOKEN}
	</fieldset>
	</form>

--%>